<template>
	<div class="error layout-padding">
		<div class="layout-padding-auto layout-padding-view">
			<div class="error-flex">
				<div class="left">
					<div class="left-item">
						<div class="left-item-animation left-item-num">401</div>
						<div class="left-item-animation left-item-title">{{ $t('message.noAccess.accessTitle') }}</div>
						<div class="left-item-animation left-item-msg">{{ $t('message.noAccess.accessMsg') }}</div>
						<div class="left-item-animation left-item-btn">
							<el-button type="primary" size="default" round @click="onSetAuth">{{
								$t('message.noAccess.accessBtn') }}</el-button>
						</div>
					</div>
				</div>
				<div class="right">
					<svg legacy-metrics="false" node-id="1" sillyvg="true" version="1.1" viewBox="0 0 1630 1024"
						xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
						<defs node-id="23"></defs>
						<g node-id="25">
							<path
								d="M 475.07 881.15 L 477.38 884.79 L 480.24 888.24 L 483.70 891.51 L 487.83 894.61 L 492.70 897.52 L 498.84 900.48 L 505.90 903.21 L 514.00 905.70 L 523.23 907.91 L 532.24 909.60 L 542.10 911.05 L 552.87 912.25 L 564.62 913.18 L 580.05 913.92 L 596.76 914.27 L 614.82 914.19 L 632.83 913.73 L 651.81 912.95 L 671.78 911.81 L 701.91 909.64 L 733.46 906.92 L 765.32 903.81 L 797.81 900.37 L 862.80 893.04 L 926.36 885.79 L 957.26 882.44 L 986.47 879.49 L 1015.00 876.93 L 1041.07 875.01 L 1058.21 874.04 L 1073.86 873.45 L 1088.11 873.21 L 1102.41 873.37 L 1114.83 873.98 L 1125.56 874.97 L 1133.81 876.16 L 1140.76 877.62 L 1146.57 879.30 L 1151.37 881.15 L 1164.76 886.82 L 1178.04 891.82 L 1191.22 896.18 L 1204.32 899.89 L 1217.35 902.99 L 1230.66 905.55 L 1243.78 907.50 L 1256.73 908.85 L 1269.51 909.60 L 1282.15 909.76 L 1294.90 909.35 L 1307.39 908.36 L 1319.63 906.81 L 1331.63 904.71 L 1343.41 902.05 L 1355.12 898.79 L 1366.50 895.00 L 1377.56 890.67 L 1388.32 885.81 L 1398.79 880.42 L 1407.31 875.49 L 1415.56 870.21 L 1423.54 864.57 L 1431.26 858.57 L 1438.73 852.20 L 1445.95 845.45 L 1452.82 838.42 L 1459.37 831.03 L 1465.62 823.28 L 1471.56 815.16 L 1477.20 806.65 L 1482.54 797.73 L 1487.39 788.73 L 1491.88 779.36 L 1496.01 769.60 L 1499.78 759.44 L 1503.19 748.85 L 1506.22 737.83 L 1508.70 726.98 L 1510.77 715.74 L 1512.41 704.07 L 1513.61 691.96 L 1514.36 679.38 L 1514.63 666.33 L 1514.45 651.24 L 1513.90 636.07 L 1512.97 620.79 L 1511.66 605.41 L 1509.98 590.09 L 1507.89 574.82 L 1505.41 559.58 L 1502.53 544.37 L 1499.24 529.25 L 1495.54 514.30 L 1491.42 499.52 L 1486.89 484.90 L 1481.90 470.41 L 1476.49 456.21 L 1470.65 442.30 L 1464.38 428.68 L 1457.62 415.26 L 1450.41 402.25 L 1442.76 389.63 L 1434.67 377.40 L 1427.81 367.84 L 1420.66 358.61 L 1413.21 349.68 L 1405.46 341.07 L 1397.40 332.75 L 1389.02 324.76 L 1380.32 317.14 L 1371.29 309.88 L 1361.93 302.98 L 1352.22 296.43 L 1341.79 290.06 L 1330.98 284.06 L 1319.80 278.41 L 1308.21 273.11 L 1296.22 268.18 L 1281.14 262.64 L 1265.47 257.55 L 1249.20 252.92 L 1232.30 248.75 L 1215.43 245.14 L 1198.01 241.89 L 1180.01 239.01 L 1161.42 236.51 L 1136.70 233.78 L 1111.08 231.54 L 1084.55 229.82 L 1058.00 228.56 L 1030.70 227.64 L 1002.63 227.05 L 960.31 226.64 L 916.62 226.59 L 827.50 226.80 L 812.16 226.53 L 796.72 225.82 L 781.16 224.66 L 765.47 223.04 L 744.66 220.32 L 723.72 217.03 L 702.66 213.17 L 681.67 208.86 L 660.67 204.22 L 639.66 199.24 L 608.25 191.41 L 577.09 183.36 L 546.07 175.30 L 515.58 167.58 L 495.26 162.66 L 475.32 158.14 L 455.74 154.00 L 436.07 150.27 L 416.88 147.18 L 398.17 144.69 L 384.03 143.24 L 370.22 142.27 L 356.71 141.77 L 343.51 141.73 L 330.22 142.21 L 317.28 143.29 L 304.67 144.96 L 292.35 147.19 L 282.57 149.47 L 272.98 152.21 L 263.59 155.40 L 254.37 159.05 L 245.33 163.16 L 229.96 170.90 L 215.51 178.66 L 201.95 186.43 L 189.24 194.20 L 177.33 201.98 L 166.21 209.76 L 154.86 218.33 L 144.37 226.96 L 134.70 235.64 L 125.81 244.38 L 117.66 253.18 L 110.22 262.05 L 104.06 270.20 L 98.44 278.46 L 93.35 286.83 L 88.79 295.32 L 84.73 303.95 L 81.16 312.73 L 78.08 321.65 L 75.51 330.69 L 73.43 339.95 L 71.83 349.45 L 70.72 359.21 L 70.12 369.25 L 70.03 379.58 L 70.48 390.22 L 71.38 400.37 L 72.78 410.88 L 74.70 421.75 L 77.17 433.02 L 80.21 444.70 L 83.85 456.81 L 88.11 469.38 L 93.24 482.68 L 98.91 495.76 L 105.14 508.63 L 111.94 521.29 L 119.20 533.69 L 126.89 545.89 L 135.04 557.90 L 143.65 569.73 L 152.58 581.30 L 161.85 592.68 L 171.44 603.87 L 181.37 614.90 L 194.97 629.25 L 208.92 643.27 L 223.24 656.97 L 237.83 670.37 L 252.54 683.43 L 267.37 696.15 L 289.81 714.80 L 311.90 732.62 L 354.96 766.59 L 375.58 782.87 L 394.68 798.23 L 407.13 808.52 L 418.62 818.35 L 429.18 827.74 L 439.52 837.43 L 448.62 846.61 L 456.60 855.32 L 462.38 862.22 L 467.34 868.81 L 471.55 875.11 L 475.07 881.15 Z"
								fill="#f0f1f9" fill-rule="evenodd" group-id="1" id="椭圆形备份-17" node-id="6"
								stroke-linecap="butt" stroke-width="1" target-height="772.54395" target-width="1444.5964"
								target-x="70.03445" target-y="141.72644"></path>
							<path d="M 1478.67 155.72 L 1553.90 380.30 L 1374.27 388.99 L 1478.67 155.72 Z" fill="#3681fd"
								fill-rule="evenodd" group-id="1" id="路径-25" node-id="7" stroke="#555555"
								stroke-linecap="butt" stroke-width="8.915931" target-height="233.26283"
								target-width="179.62903" target-x="1374.2732" target-y="155.72289"></path>
							<path d="M 226.70 264.78 L 172.62 627.43 L 306.77 705.39 L 377.97 510.20 L 226.70 264.78 Z"
								fill-rule="evenodd" group-id="1" id="路径-25备份" node-id="8" stroke="#555555"
								stroke-linecap="butt" stroke-width="8.915931" target-height="440.6032"
								target-width="205.34598" target-x="172.61938" target-y="264.78314"></path>
							<path
								d="M 731.98 114.63 L 1474.43 147.72 L 1429.10 677.31 L 1423.95 737.48 L 626.54 737.48 L 731.98 114.63 Z"
								fill="#ffffff" fill-rule="evenodd" group-id="1" id="矩形备份-11" node-id="9" stroke="#555555"
								stroke-linecap="butt" stroke-width="8.915931" target-height="622.8559"
								target-width="847.89056" target-x="626.54193" target-y="114.62898"></path>
							<path
								d="M 844.00 372.15 L 1352.50 398.83 L 1343.15 482.13 L 766.74 442.91 L 767.36 436.32 L 768.54 429.90 L 770.25 423.63 L 772.50 417.53 L 775.23 411.69 L 778.47 406.08 L 782.18 400.78 L 786.34 395.81 L 790.97 391.18 L 795.99 386.98 L 801.28 383.29 L 806.84 380.10 L 812.66 377.42 L 818.64 375.27 L 824.82 373.65 L 831.12 372.58 L 837.51 372.08 L 844.00 372.15 Z"
								fill="#f4f4f4" fill-rule="nonzero" group-id="1" id="路径备份-2" node-id="10"
								stroke-linecap="butt" stroke-width="1" target-height="110.04407" target-width="585.7614"
								target-x="766.736" target-y="372.08258"></path>
							<path
								d="M 844.00 202.75 L 1380.80 227.57 L 1367.24 312.72 L 766.74 273.51 L 767.36 266.91 L 768.54 260.50 L 770.25 254.23 L 772.50 248.13 L 775.23 242.28 L 778.47 236.68 L 782.18 231.37 L 786.34 226.41 L 790.97 221.78 L 795.99 217.57 L 801.28 213.89 L 806.84 210.70 L 812.66 208.01 L 818.64 205.87 L 824.82 204.25 L 831.12 203.18 L 837.51 202.68 L 844.00 202.75 Z"
								fill="#f4f4f4" fill-rule="nonzero" group-id="1" id="路径备份-12" node-id="11"
								stroke-linecap="butt" stroke-width="1" target-height="110.03732" target-width="614.061"
								target-x="766.736" target-y="202.67987"></path>
							<path
								d="M 824.05 539.95 L 1326.82 567.76 L 1312.59 650.60 L 746.79 610.71 L 747.42 604.12 L 748.59 597.70 L 750.31 591.43 L 752.55 585.33 L 755.29 579.49 L 758.53 573.88 L 762.24 568.58 L 766.40 563.61 L 771.03 558.98 L 776.05 554.78 L 781.33 551.09 L 786.89 547.90 L 792.71 545.22 L 798.70 543.07 L 804.88 541.45 L 811.18 540.38 L 817.56 539.88 L 824.05 539.95 Z"
								fill="#f4f4f4" fill-rule="nonzero" group-id="1" id="路径备份-3" node-id="12"
								stroke-linecap="butt" stroke-width="1" target-height="110.71265" target-width="580.02234"
								target-x="746.79285" target-y="539.8826"></path>
							<path
								d="M 1026.23 256.51 L 1062.95 734.32 L 1007.62 851.61 L 268.84 862.63 L 228.85 256.51 L 1026.23 256.51 Z"
								fill="#ffffff" fill-rule="evenodd" group-id="1" id="矩形" node-id="13" stroke="#555555"
								stroke-linecap="butt" stroke-width="8.915931" target-height="606.1172"
								target-width="834.10046" target-x="228.85245" target-y="256.5121"></path>
							<path d="M 1022.74 205.82 L 1027.54 276.08" fill="none" group-id="1" id="路径-23备份-2" node-id="14"
								stroke="#555555" stroke-linecap="butt" stroke-width="8.915931" target-height="70.26793"
								target-width="4.798401" target-x="1022.7448" target-y="205.81688"></path>
							<path
								d="M 667.14 733.03 L 717.98 749.42 L 765.48 764.15 L 809.81 777.32 L 851.13 789.01 L 889.56 799.31 L 925.27 808.31 L 958.39 816.08 L 989.05 822.72 L 1017.39 828.28 L 1043.54 832.86 L 1067.62 836.52 L 1089.76 839.33 L 1110.06 841.36 L 1128.65 842.67 L 1145.63 843.33 L 1161.11 843.39 L 1175.20 842.90 L 1187.98 841.92 L 1199.57 840.50 L 1210.04 838.68 L 1219.48 836.49 L 1227.97 833.98 L 1235.60 831.17 L 1241.66 828.40 L 1246.87 825.50 L 1251.31 822.49 L 1255.08 819.36 L 1258.22 816.12 L 1261.10 812.42 L 1263.45 808.58 L 1265.30 804.59 L 1266.66 800.43 L 1267.55 796.05 L 1268.04 790.52 L 1267.95 784.67 L 1267.22 778.44 L 1265.81 771.80 L 1263.97 765.41 L 1261.62 758.69 L 1258.72 751.62 L 1255.24 744.17 L 1250.25 734.58 L 1244.53 724.53 L 1238.05 714.00 L 1227.79 698.38 L 1216.49 682.12 L 1192.77 649.33 L 1180.76 632.81 L 1169.13 616.47 L 1157.93 600.11 L 1147.79 584.36 L 1141.43 573.73 L 1135.84 563.56 L 1130.98 553.83 L 1127.63 546.28 L 1124.86 539.09 L 1122.64 532.24 L 1120.94 525.69 L 1119.70 518.92 L 1119.14 512.54 L 1119.21 506.51 L 1119.88 500.78 L 1121.55 493.22 L 1123.81 485.77 L 1126.66 478.39 L 1130.14 471.09 L 1134.25 463.84 L 1139.03 456.62 L 1144.53 449.42 L 1150.78 442.24 L 1157.83 435.07 L 1165.74 427.89 L 1174.56 420.72 L 1184.35 413.55 L 1195.19 406.37 L 1207.13 399.21"
								fill="none" group-id="1" id="路径-26" node-id="15" stroke="#3681fd"
								stroke-dasharray="53.495586 53.495586" stroke-linecap="butt" stroke-width="8.915931"
								target-height="444.18198" target-width="600.90173" target-x="667.1426" target-y="399.20694">
							</path>
							<path d="M 495.83 693.49 L 632.19 657.85 L 576.76 788.53 L 566.82 723.31 Z" fill-rule="evenodd"
								group-id="1" id="路径-27" node-id="16" stroke-linecap="butt" stroke-width="1"
								target-height="130.6853" target-width="136.3601" target-x="495.83057" target-y="657.84534">
							</path>
							<path d="M 1254.39 439.99 L 1230.75 301.07 L 1356.13 367.67 L 1290.28 371.88 Z" fill="#3681fd"
								fill-rule="evenodd" group-id="1" id="路径-27备份" node-id="17" stroke-linecap="butt"
								stroke-width="1" target-height="138.92456" target-width="125.37927" target-x="1230.7543"
								target-y="301.06873"></path>
							<path d="M 237.02 372.84 L 1035.00 351.89 L 1034.64 361.38 L 236.67 382.32 Z"
								fill-rule="nonzero" group-id="1" id="路径-2备份-3" node-id="18" stroke-linecap="butt"
								stroke-width="1" target-height="30.430176" target-width="798.3348" target-x="236.6674"
								target-y="351.8943"></path>
							<path
								d="M 930.41 290.18 L 928.30 290.31 L 925.09 290.92 L 922.08 292.08 L 919.32 293.76 L 916.89 295.93 L 914.88 298.53 L 913.44 301.26 L 912.52 304.18 L 912.10 307.22 L 912.21 310.21 L 912.84 313.20 L 913.96 316.04 L 915.59 318.66 L 917.78 321.09 L 918.73 321.89 L 921.52 323.57 L 924.81 324.78 L 928.31 325.49 L 931.96 325.74 L 935.61 325.55 L 939.03 324.95 L 942.22 323.92 L 944.82 322.56 L 946.84 320.99 L 948.45 319.30 L 949.68 317.50 L 950.58 315.57 L 951.33 312.80 L 951.55 309.97 L 951.24 307.03 L 950.47 304.16 L 949.26 301.41 L 947.58 298.75 L 945.54 296.36 L 943.15 294.29 L 940.38 292.53 L 937.37 291.24 L 934.07 290.45 L 930.41 290.18 Z M 941.81 318.00 L 939.94 318.96 L 937.51 319.70 L 934.91 320.14 L 932.10 320.28 L 929.28 320.12 L 926.63 319.63 L 924.16 318.78 L 922.17 317.62 L 921.42 316.99 L 919.94 315.34 L 918.83 313.54 L 918.07 311.59 L 917.65 309.52 L 917.58 307.46 L 917.87 305.36 L 918.51 303.34 L 919.51 301.44 L 920.90 299.64 L 922.59 298.14 L 924.50 296.97 L 926.59 296.17 L 928.81 295.74 L 930.48 295.65 L 933.13 295.83 L 935.52 296.39 L 937.70 297.30 L 939.71 298.54 L 941.45 299.99 L 942.93 301.66 L 944.17 303.53 L 945.09 305.45 L 945.70 307.44 L 945.99 309.48 L 945.91 311.43 L 945.49 313.32 L 944.69 315.05 L 943.48 316.61 L 941.81 318.00 Z"
								fill="#555555" fill-rule="nonzero" group-id="1" id="路径-3备份-2" node-id="19"
								stroke-linecap="butt" stroke-width="1" target-height="35.560516" target-width="39.442688"
								target-x="912.10455" target-y="290.18262"></path>
							<path
								d="M 832.31 290.18 L 830.20 290.31 L 827.00 290.92 L 823.98 292.08 L 821.23 293.76 L 818.79 295.93 L 816.79 298.53 L 815.34 301.26 L 814.42 304.18 L 814.01 307.22 L 814.12 310.21 L 814.74 313.20 L 815.87 316.04 L 817.50 318.66 L 819.68 321.09 L 820.64 321.89 L 823.43 323.57 L 826.71 324.78 L 830.22 325.49 L 833.87 325.74 L 837.52 325.55 L 840.94 324.95 L 844.13 323.92 L 846.73 322.56 L 848.75 320.99 L 850.35 319.30 L 851.59 317.50 L 852.49 315.57 L 853.23 312.80 L 853.46 309.97 L 853.15 307.03 L 852.38 304.16 L 851.16 301.41 L 849.49 298.75 L 847.45 296.36 L 845.06 294.29 L 842.29 292.53 L 839.28 291.24 L 835.97 290.45 L 832.31 290.18 Z M 843.72 318.00 L 841.84 318.96 L 839.42 319.70 L 836.81 320.14 L 834.00 320.28 L 831.19 320.12 L 828.53 319.63 L 826.07 318.78 L 824.08 317.62 L 823.33 316.99 L 821.85 315.34 L 820.74 313.54 L 819.98 311.59 L 819.55 309.52 L 819.49 307.46 L 819.78 305.36 L 820.42 303.34 L 821.42 301.44 L 822.81 299.64 L 824.50 298.14 L 826.41 296.97 L 828.50 296.17 L 830.72 295.74 L 832.39 295.65 L 835.04 295.83 L 837.43 296.39 L 839.61 297.30 L 841.62 298.54 L 843.36 299.99 L 844.84 301.66 L 846.08 303.53 L 846.99 305.45 L 847.60 307.44 L 847.89 309.48 L 847.82 311.43 L 847.39 313.32 L 846.60 315.05 L 845.39 316.61 L 843.72 318.00 Z"
								fill="#555555" fill-rule="nonzero" group-id="1" id="路径-3备份-7" node-id="20"
								stroke-linecap="butt" stroke-width="1" target-height="35.560486" target-width="39.44275"
								target-x="814.0123" target-y="290.18262"></path>
							<path
								d="M 731.42 287.95 L 729.03 288.09 L 726.58 288.48 L 724.24 289.15 L 721.98 290.10 L 719.86 291.31 L 717.90 292.76 L 716.10 294.47 L 713.83 297.41 L 712.19 300.51 L 711.15 303.81 L 710.68 307.25 L 710.80 310.65 L 711.51 314.04 L 712.79 317.26 L 714.64 320.22 L 717.11 322.98 L 718.19 323.88 L 720.25 325.21 L 722.53 326.31 L 725.08 327.16 L 729.05 327.96 L 733.19 328.25 L 737.32 328.03 L 741.19 327.35 L 744.81 326.18 L 747.76 324.65 L 750.05 322.86 L 751.87 320.95 L 753.27 318.91 L 754.29 316.72 L 755.13 313.58 L 755.38 310.37 L 755.04 307.04 L 754.16 303.79 L 752.79 300.67 L 750.89 297.66 L 748.58 294.95 L 745.87 292.61 L 742.73 290.61 L 740.20 289.46 L 737.49 288.62 L 734.58 288.12 L 731.42 287.95 Z M 744.35 319.48 L 742.22 320.56 L 739.48 321.40 L 736.53 321.90 L 733.34 322.06 L 730.15 321.88 L 727.14 321.32 L 724.35 320.36 L 722.09 319.05 L 721.24 318.33 L 719.56 316.46 L 718.31 314.42 L 717.44 312.21 L 716.97 309.87 L 716.89 307.53 L 717.22 305.15 L 717.95 302.86 L 719.08 300.71 L 720.66 298.67 L 722.57 296.97 L 724.73 295.65 L 727.10 294.73 L 729.62 294.25 L 731.51 294.14 L 734.52 294.35 L 737.23 294.98 L 739.69 296.02 L 741.97 297.42 L 743.94 299.07 L 745.62 300.96 L 747.03 303.08 L 748.06 305.25 L 748.75 307.50 L 749.08 309.83 L 749.00 312.03 L 748.51 314.17 L 747.61 316.14 L 746.24 317.90 L 744.35 319.48 Z"
							fill="#555555" fill-rule="nonzero" group-id="1" id="路径-3备份-8" node-id="21"
							stroke-linecap="butt" stroke-width="1" target-height="40.299835" target-width="44.699646"
							target-x="710.6836" target-y="287.9515"></path>
					</g>
				</svg>
			</div>
		</div>
	</div>
</div></template>

<script setup lang="ts" name="noPower">
import { Session } from '/@/utils/storage';

const onSetAuth = () => {
	// https://gitee.com/lyt-top/vue-next-admin/issues/I5C3JS
	// 清除缓存/token等
	Session.clear();
	// 使用 reload 时，不需要调用 resetRoute() 重置路由
	window.location.reload();
};
</script>

<style scoped lang="scss">.error {
	height: 100%;

	.error-flex {
		margin: auto;
		display: flex;
		height: 350px;
		width: 900px;

		.left {
			flex: 1;
			height: 100%;
			align-items: center;
			display: flex;

			.left-item {
				.left-item-animation {
					opacity: 0;
					animation-name: error-num;
					animation-duration: 0.5s;
					animation-fill-mode: forwards;
				}

				.left-item-num {
					color: var(--el-color-info);
					font-size: 55px;
				}

				.left-item-title {
					font-size: 20px;
					color: var(--el-text-color-primary);
					margin: 15px 0 5px 0;
					animation-delay: 0.1s;
				}

				.left-item-msg {
					color: var(--el-text-color-secondary);
					font-size: 12px;
					margin-bottom: 30px;
					animation-delay: 0.2s;
				}

				.left-item-btn {
					animation-delay: 0.2s;
				}
			}
		}

		.right {
			flex: 1;
			opacity: 0;
			animation-name: error-img;
			animation-duration: 2s;
			animation-fill-mode: forwards;

			img {
				width: 100%;
				height: 100%;
			}
		}
	}
}</style>
